package com.jimikongjian.models;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;

/**
 * Created by fuxiuyang on 17/2/19.
 */
@Scope("prototype")
@Repository("album")
public class Album {

    /**
     * 初始化id号，将id号置为-1
     */
    public static final int INIT_ID = -1;

    /**
     * 自身的id号
     */
    private int id;

    /**
     * 相册创建者的id号
     */
    private int userId = Album.INIT_ID;

    /**
     *创建者的昵称
     */
    private String userNick;

    /**
     * 相册所属空间的id号
     */
    private int roomId = Album.INIT_ID;

    /**
     * 相册所属空间的名称
     */
    private String roomName;

    /**
     * 相册的标题
     */
    private String albumTitle;

    /**
     * 相册的描述
     */
    private String albumDesc;

    /**
     * 相册中图片的数量
     */
    private int photosCount = 0;

    /**
     * 相册里的第一个照片
     */
    private String cover1;

    /**
     * 相册里的第二个照片
     */
    private String cover2;

    /**
     * 相册里的第三个照片
     */
    private String cover3;

    /**
     * 相册创建时间
     */
    private Timestamp createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getAlbumTitle() {
        return albumTitle;
    }

    public void setAlbumTitle(String albumTitle) {
        this.albumTitle = albumTitle;
    }

    public String getAlbumDesc() {
        return albumDesc;
    }

    public void setAlbumDesc(String albumDesc) {
        this.albumDesc = albumDesc;
    }

    public int getPhotosCount() {
        return photosCount;
    }

    public void setPhotosCount(int photosCount) {
        this.photosCount = photosCount;
    }

    public String getCover1() {
        return cover1;
    }

    public void setCover1(String cover1) {
        this.cover1 = cover1;
    }

    public String getCover2() {
        return cover2;
    }

    public void setCover2(String cover2) {
        this.cover2 = cover2;
    }

    public String getCover3() {
        return cover3;
    }

    public void setCover3(String cover3) {
        this.cover3 = cover3;
    }


    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
}

